package part3.c19_emp.service;

import part3.c19_emp.payment_classification.PaymentClassification;
import part3.c19_emp.payment_classification.SalariedClassification;
import part3.c19_emp.payment_schedule.MonthlySchedule;
import part3.c19_emp.payment_schedule.PaymentSchedule;

/**
 * Created by lie on 2018/3/29.
 * 添加固定月薪雇员
 */
public class AddSalariedEmp extends AddEmployeeTransaction {

    private float salary;

    public AddSalariedEmp(int empId, String itsAddress, String itsName, float salary) {
        super(empId, itsAddress, itsName);
        this.salary = salary;
    }

    PaymentClassification getClassification() {
        return new SalariedClassification(this.salary);
    }
    PaymentSchedule getSchedule() {
        return new MonthlySchedule();
    }

}
